package com.cti.ftpservice.job;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.cti.ftpservice.service.FtpOnixService;
import com.cti.ftpservice.service.FtpService;

@Component("ftpOnixSaveBookInfoFromXmlJob")
public class FtpOnixSaveBookInfoFromXmlJob {

	private static Log log = LogFactory.getLog(FtpOnixSaveBookInfoFromXmlJob.class);
	@Resource
	private FtpOnixService ftpOnixService;
	
	public void doWork(){
		log.info("开始解析OnixXml文件！");
		ftpOnixService.saveBookinfosFromOnixXmlFiles();
		log.info("解析结束");
	}
	
}
